<div class="contenidofijo">
<div class="ciucourseCiustudents coreregister">
        <?php if (strtotime(date($startDate)) <= time() and strtotime(date($endDate)) >= time()) {?>
    	<?php  $tokens=array(0=>"", 1=>"Estudiantes por Curso") ?>
        <?php echo $this->element("breadcrumb", array('tokens'=>$tokens))?>
        <div class="ciucourseCiustudents form">	
        <?php echo $this->Form->create('Ciucourse Ciustudents');?>
        <fieldset>
            <?php
              echo $this->Form->input('Curso', array('options'=>$opciones));
           ?>
        </fieldset>
        <?php echo $this->Form->end(__('Submit', true));?>
        </div>
	<table class="zebra" cellpadding="0" cellspacing="0">
	<thead>
	<tr>
	    <th><?php echo $this->Paginator->sort('ciusubject_id ');?></th>
        <th><?php echo $this->Paginator->sort('AcademicPeriods');?></th>
	    <th><?php echo $this->Paginator->sort('Document');?></th>
            <th><?php echo $this->Paginator->sort('Nombres');?></th>
            <th><?php echo $this->Paginator->sort('score1');?></th>
            <th><?php echo $this->Paginator->sort('score2');?></th>
            <th><?php echo $this->Paginator->sort('score3');?></th>
            <th><?php echo $this->Paginator->sort('score4');?></th>
            <th><?php echo $this->Paginator->sort('total_score');?></th>
            <th><?php echo $this->Paginator->sort('State');?></th>
	    <th class="actions"><?php __('Actions');?></th>
	</tr>
	</thead>
	<?php
	$i = 0;
	foreach ($ciucourseCiustudents as $ciucourseCiustudent):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $ciucourseCiustudent['Ciusubject']['name']; ?>&nbsp;</td>
		<td>
			<?php echo $ciucourseCiustudent['Ciucourse']['Ciuacademicperiod']['name']; ?>
		</td>   
		<td>
			<?php echo $ciucourseCiustudent['Ciuuser']['document']; ?>
		</td>
		<td>
			<?php echo $ciucourseCiustudent['Ciuuser']['first_names']; ?>
                        <?php echo $ciucourseCiustudent['Ciuuser']['last_names']; ?>
		</td>
		<td>
			<?php echo $ciucourseCiustudent['CiucourseCiustudent']['score1']; ?>
		</td>
        <td>
		    <?php echo $ciucourseCiustudent['CiucourseCiustudent']['score2']; ?>
		</td>
        <td>
		    <?php echo $ciucourseCiustudent['CiucourseCiustudent']['score3']; ?>
		</td>
        <td>
		    <?php echo $ciucourseCiustudent['CiucourseCiustudent']['score4']; ?>
		</td>
        <td>
		    <?php echo $ciucourseCiustudent['CiucourseCiustudent']['total_score']; ?> 
		</td>
		<td>
			<?php echo $ciucourseCiustudent['Ciucurspersstate']['name']; ?>
		</td>
		
		<td class="actions">
			<?php echo $this->Html->link(__('Score', true), array('action' => 'score', $ciucourseCiustudent['CiucourseCiustudent']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
        <?php }
               else { ?>
        </br>
 
        <table>
            <tr>
                <td><?php echo $this->Html->image("bloqueado.jpg"); ?></td>
                <td></br></br></br></br></br></br>
                    <h2>Esta opción se encuentra deshabilidata.
                    </h2>
                    <h2>Recuerde que las calificaciones solo se podrán registrar desde el 
                        <strong><?php echo $startDate ?></strong> 
                        hasta 
                        <strong><?php echo $endDate ?></strong>. 
                    </h2></td>
            </tr>
        </table>
        
        
        <?php } ?>
</div>
</div>

